Product Code Database
Example Keywords: resident evil -call $44
barcode-scavenger
   » » Wiki: Z Shell
Tag Wiki 'Z Shell'.
Tag

The Z shell ( Zsh) is a that can be used as an login shell and as a command interpreter for . Zsh is an extended with many improvements, including some features of Bash, , and .

Zsh was created by Paul Falstad in 1990 while he was a student at Princeton University. It combines features from both and , offering functionality such as programmable command-line completion, extended file , improved variable/array handling, and themeable .

Zsh is available for Microsoft Windows as part of the collection and has been adopted as the default shell for , and . The "Oh My Zsh" user community website provides a platform for third-party plug-ins and themes, featuring a large and active contributor base.


History
Paul Falstad wrote the first version of Zsh in 1990 while a student at Princeton University. The name zsh derives from the name of professor Zhong Shao (then a teaching assistant at Princeton University) – Paul Falstad regarded Shao's , "zsh", as a good name for a shell.

Zsh was at first intended to be a subset of for the , but expanded far beyond that. By the time of the release of version 1.0 in 1990 the aim was to be a cross between ksh and tcsh a powerful "command and programming language" that is well-designed and logical (like ksh), but also built for humans (like tcsh), with all the neat features like spell checking, login/logout watching and termcap support that were "probably too weird to make it into an AT&T product".

Zsh is available for Microsoft Windows as part of the collection of native of common Unix-like utilities.

In 2019, adopted Zsh as the default login shell, replacing the GPLv2 licensed version of Bash, and when Bash is run interactively on Catalina, a warning is shown by default.

In 2020, adopted Zsh as the default shell since its 2020.4 release.


Features
Features include:

  • Programmable command-line completion that can help the user type both options and arguments for most used commands, with out-of-the-box support for several hundred commands
  • Sharing of among all running shells
  • Extended file globbing allows file specification without needing to run an external program such as find
  • Improved variable/array handling (non-zero-based numbering)
  • Editing of multi-line commands in a single buffer
  • and of command names (and optionally arguments, assumed to be file names)
  • Various compatibility modes, e.g. Zsh can pretend to be a when run as /bin/sh
  • Themeable prompts, including the ability to put prompt information on the right side of the screen and have it auto-hide when typing a long command
  • Loadable modules, providing among other things: full TCP and Unix domain socket controls, an FTP client, and extended math functions.
  • The built-in where command. Works like the which command but shows all locations of the target command in the directories specified in $PATH rather than only the one that will be used.
  • Named directories. This allows the user to set up shortcuts such as ~mydir, which then behave the way ~ and ~user do.
  • Widgets. Both built and implemented by ordinary functions widgets can be bound to hotkeys.
  • Function autoloading. A performance optimization for function that might be pre-loaded and run on demand.
    (2025). 9780596003302, O'Reilly.
    The intent of loading functions as separate file is also to support function features across different zsh versions.


Community
A user community website known as "Oh My Zsh" collects third-party plug-ins and themes for the Z shell. As of 2024, their repository has over 2300 contributors, over 300 plug-ins, and over 140 themes. It also comes with an auto-update tool that makes it easier to keep installed plug-ins and themes updated.


See also
  • Comparison of command shells


External links

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
1s Time